//Implementation of Order_Item

#include "Order_Item.h"

// constructors
Order_Item::Order_Item ()
	:seat_id('A'),
	order_id(0),
	menu_item_id(0),
	prod_qty(0)
{
}

//constructor with parameters (mgm A.2)
Order_Item::Order_Item(char a, int b, int c, int d)
{
	seat_id = a;
	order_id = b;
	menu_item_id = c;
	prod_qty = d;
}

// utility functions
string Order_Item::display() const
{
	stringstream ss;
	ss << seat_id << " " << order_id << " " << menu_item_id << " " << prod_qty << "\n";
	return ss.str();
}